import Vue from 'vue'
import App from './views/App.vue'
import router from './router'
import asyncRouter from './router/asyncRouter'
import store from './store'
import './plugins/index'
import './styles/index'
// import '../src/styles/vant-theme.less'
// 引入flexible
import 'amfe-flexible'
import VConsole from 'vconsole'
Vue.config.productionTip = false
import NavBar from './components/nav-bar/NavBar.vue'
Vue.component('NavBar', NavBar)
// 开发环境开VConsole
if (process.env.VUE_APP_RUN_ENV === 'dev') {
  new VConsole()
}

router.addRoutes(asyncRouter)
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
